/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package seres;

/**
 *
 * @author Doreley Hernandez
 */
public class Terricola extends Guerrero {

   public Terricola(String soy) {
        super(soy);

        total++;
        //this.soy = soy;
    }

    public void recibeDisparo(int i) {
        if (vivo && blanco == i) {
            vivo = false;
            total--;
            System.out.println(soy + " Muerto por disparo nº " + i);
        }
    }

    public static  int getTotal() {
        return total;
    }
    private static int total = 0;
    //private String soy;

}
